import { createRouter, RouteRecordRaw, createWebHistory } from 'vue-router';

const routes: RouteRecordRaw[] = [
  { path: '/', redirect: '/login' },
  { name: 'login', path: '/login', component: () => import('@/views/login/login.vue') },
  { name: 'home', path: '/home', component: () => import('@/views/home/home.vue') },
  { name: 'microm', path: '/microm', component: () => import('@/views/microm/index.vue') }
];

const router = createRouter({
  history: createWebHistory(),
  routes
});

export default router;
